'''
Created on 2011-9-27

@author: Administrator
'''

# for 'image' type
def createImage(url, fakeLength=-1):
    
    img = {   'url' : url, 
                               'file' : '',  
                               'length' : 0L,
                               'thumbnail' : ''
                               }
    
    if fakeLength != -1:
        img['fakeLength'] = fakeLength
    
    return img

# for file type    
def createFile(url):
    return {'url' : url, 
                       'file' : '', 
                       'length' : 0L,
                       }